/**
 * Author:  LiShibin.
 * Date:    2016/3/4.
 * File：   请求api.
 */
import {post} from './post'
// 获取app版本信息
function getAppVersionInfo() {
  return post('/index.php?act=login&op=getAppVersionInfo', {})
}
// 获取key（公众号微信授权后可获取到）
function getKey() {
  return post('/index.php?act=login&op=getMemberKey', {})
}
// 获取微信jssdk相关参数, url为当前页面地址
function getWxConfig(url) {
  return post('/index.php?act=share&op=share_friends', {url: url})
}
// 根据unionId获取key等信息（app微信登录）
function getKeyByUnionId(unionId) {
  return post('/index.php?act=login&op=getInfoByUnionid', {unionid: unionId})
}
// 验证码登录 checkMobile: {mobile: '', code: '', addtime: ''}
function loginByMessage(mobile, secode, checkMobile) {
  return post('/index.php?act=login&op=updateMember', {mobile: mobile, secode: secode, checkMobile: checkMobile})
}
// 密码登录
function loginByPwd(mobile, pwd) {
  return post('/index.php?act=login&op=loginByPassword', {mobile: mobile, password: pwd})
}
// 微信登录
function loginByWeixin(mobile, secode, wxInfo, checkMobile) {
  return post('/index.php?act=login&op=updateMember', {mobile: mobile, secode: secode, checkMobile: checkMobile, wxinfo: wxInfo})
}
// 根据paySn, 获取app的微信支付需要的订单对象
function getWxPayOrder(paySn) {
  return post('/index.php?act=member_payment&op=pay', {pay_sn: paySn, payment_code: 'wxpay'})
}
// 完善资料
function auth({address, area_id, city_id, mobile, name, prov_id, secode, check_mobile, fkmid}) {
  return post('/index.php?act=login&op=apply', {address, area_id, city_id, mobile, name, prov_id, secode, check_mobile, fkmid})
}
// 获取是否完善过资料
function getAuth() {
  return post('/index.php?act=login&op=getMemberAllDone', {})
}
// 获取短信验证码
function getMessageCode(mobile) {
  return post('/index.php?act=login&op=sendCheckCode', {mobile: mobile})
}
// app获取短信验证码
function getMessageCode2(mobile) {
  return post('/index.php?act=login&op=sendCheckCode1', {mobile: mobile})
}
// 支付测试接口
function payTest() {
  return post('/index.php?act=member_payment&op=pay_tmp_test')
}
// 获取广告轮播图列表
function getAdvList() {
  // return post('/index.php?act=index&op=getAdv', {})
  return post('/index.php?act=index&op=getBannerList', {})
}
// 获取商品分类列表
function getGoodsClassList() {
  // return post('/index.php?act=index&op=goods_class', {})
  return post('/index.php?act=goods_common&op=brand_name', {})
}
// 获取品牌数据
function getBrandsData() {
  return post('/index.php?act=goods_common&op=brand_name', {})
}
// 获取公告列表
function getNoticeList() {
  return post('/index.php?act=index&op=get_notice_list', {})
}
// 获取公告详情
function getNoticeDetail(id) {
  return post('/index.php?act=index&op=notice_detail', {notice_id: id})
}
// 获取抢购列表
function getPanicBuyingList(page, pageSize) {
  // return post('/index.php?act=index&op=groupbuy_list', {page: page, pageSize: pageSize})
  return post('/index.php?act=index&op=getGroupBuyInfo', {page: page, pageSize: pageSize})
}
// 获取抢购活动的商品列表
function getPanicBuyingGoodsList(id) {
  return post('/index.php?act=index&op=getGroupbuyDetail', {groupbuy_id: id})
}
// 获取新品推荐列表
function getNewGoodsList() {
  // return post('/index.php?act=index&op=new_goods', {})
  return post('/index.php?act=index&op=getNewSeed', {})
}
// 获取猜你喜欢
function getHotGoodsList(page, pageSize) {
  return post('/index.php?act=index&op=hot_goods', {page: page, pageSize: pageSize})
}
// 获取商品列表
function getGoodsList(param) {
  // let param = {page: page, pageSize: pageSize}
  // if (id !== '') { // 全部类别时，请求不需要id
  //   param.brand_id = id
  // }
  // if (goods_name) { // 关键字搜索
  //   param.goods_name = goods_name
  // }
  return post('/index.php?act=goods&op=goods_list', param)
}
// 获取商品详细
function getGoodsInfo(id) {
  return post('/index.php?act=goods&op=get_goods_info', {goods_commonid: id})
}
// 获取商品评价列表
function getGoodsCommentList(id, page, pageSize) {
  return post('/index.php?act=goods&op=getCommentInfoMore', {goods_commonid: id, page: page, pageSize: pageSize})
}
// 获取商品规格列表/根据商品规格获取商品库存等信息(有传规格列表时)
function getGoodsAttributeList(id, attrList) {
  let param = {goods_commonid: id}
  if (attrList) {
    param.attr = attrList
  }
  return post('/index.php?act=goods&op=getAttribute', param)
}
// 加入购物车
function addGoodsToCart(goodsId, num) {
  return post('/index.php?act=openshop&op=addCart', {goods_id: goodsId, num: num})
}
// 修改购物车里的商品数量
function modifyGoodsNumToBuy(id, num) {
  return post('/index.php?act=member_cart&op=cart_edit_quantity', {cart_id: id, quantity: num})
}
// 从购物车移出
function delGoodsFromCart(id) {
  return post('/index.php?act=member_cart&op=cart_del', {cart_id: id})
}
// 获取购物车里的商品列表
function getGoodsListInCart() {
  return post('/index.php?act=member_cart&op=cart_list', {})
}
// 删除收货地址
function delAddress(id) {
  return post('/index.php?act=member_address&op=address_del', {address_id: id})
}
// 获取地址详情
function getAddressInfo(id) {
  return post('/index.php?act=member_address&op=address_info', {address_id: id})
}
// 获取收货地址列表
function getAddressList() {
  return post('/index.php?act=member_address&op=address_list2', {})
}
// 新增收货地址
function addAddress({address, area_id, area_info, city_id, mob_phone, prov_id, tel_phone, true_name, is_default}) {
  return post('/index.php?act=member_address&op=address_add', {
    address,
    area_id,
    area_info,
    city_id,
    mob_phone,
    prov_id,
    tel_phone,
    true_name,
    is_default
  })
}
// 更新收货地址
function updateAddress({address_id, address, area_id, area_info, city_id, mob_phone, prov_id, tel_phone, true_name, is_default}) {
  return post('/index.php?act=member_address&op=address_edit', {
    address_id,
    address,
    area_id,
    area_info,
    city_id,
    mob_phone,
    prov_id,
    tel_phone,
    true_name,
    is_default
  })
}
// 设置默认收货地址
function setDefaultAddress(id) {
  return post('/index.php?act=member_address&op=address_change', {addressid: id})
}
// 获取下单信息
function getBuyInfo(idList) {
  return post('/index.php?act=member_buy&op=buy_step1', {cart_id: idList})
}
// 提交订单
function submitOrder({address_id, cart_id, express_id, ifcart, is_balance, is_integral, order_note, pay_name, self, cm_id, balance}) {
  return post('/index.php?act=member_buy&op=buy_step2', {
    address_id,
    cart_id,
    express_id,
    ifcart,
    is_balance,
    is_integral,
    order_note,
    pay_name,
    self,
    cm_id,
    balance
  })
}
// 获取订单列表
function getOrderList(type, page, pageSize) {
  return post('/index.php?act=member_order&op=order_list', {type: type, page: page, pageSize: pageSize})
}
// 获取订单信息
function getOrderInfo(id) {
  return post('/index.php?act=openshop&op=orderdetail', {order_id: id})
}
// 取消订单
function cancleOrder(id) {
  return post('/index.php?act=member_order&op=updateOverTimeOrder', {order_id: id})
}
// 获取积分列表
function getIntegralList(page, pageSize) {
  return post('/index.php?act=openshop&op=integral_detail', {page: page, pageSize: pageSize})
}
// 获取余额列表
function getBalanceList(page, pageSize) {
  return post('/index.php?act=openshop&op=balance_detail', {page: page, pageSize: pageSize})
}
// 获取省市区
function getArea(type) {
  return post('/index.php?act=member_address&op=returnAreaInfo', {type: type})
}
// 批量添加评论
function addCommentList(commentList, orderId) {
  return post('/index.php?act=openshop&op=evaluate', {goods: commentList, order_id: orderId})
}
// 获取视频列表
function getVideo(page, pageSize) {
  return post('/index.php?act=index&op=videoList', {page: page, pageSize: pageSize})
}
// 获取视频列表
function getVideoDetail(vid) {
  return post('/index.php?act=index&op=getVideoDetail', {id: vid})
}
// 获取首页视频
function homeVideo() {
  return post('/index.php?act=index&op=homePageVideo')
}
// 获取个人信息（需注册后才可取得）
function getMemberInfo() {
  return post('/index.php?act=member&op=getMemberInfo')
}
// 获取个人名字(无需注册)
function getMemberName() {
  return post('/index.php?act=login&op=indexMemberInfo')
}
// 注册
function register(mobile, pwd, code, fkmid) {
  return post('/index.php?act=login&op=registerMember', {mobile: mobile, secode: code, password: pwd, fkmid: fkmid})
}
// 获取消息列表
function getMessageList() {
  return post('')
}
// 获取退款列表
function getRefundMoneyList(page, pageSize) {
  return post('/index.php?act=member_order&op=getRefundInfo1', {page, pageSize})
}
// 退款详情
function getRefundMoneyInfo(id) {
  return post('/index.php?act=member_order&op=getRefundDetail', {refund_id: id})
}
// 获取换货列表
function getRefundGoodsList(page, pageSize) {
  return post('/index.php?act=member_order&op=getRefundInfo2', {page, pageSize})
}
// 获取订单的换货列表
function getRefundGoodsListByOrder(id) {
  return post('/index.php?act=member_order&op=getRefundInfo2', {order_id: id})
}
// 发起退款/换货
function addRefund({goods_num, buyer_message, goods_id, order_id, reason_info, refund_type}) {
  let param = {buyer_message, goods_id, order_id, reason_info, refund_type}
  if (goods_num) { // 换货需要数量
    param.goods_num = goods_num
  }
  return post('/index.php?act=refund&op=addrefund', param)
}
// 换货详情
function getRefundInfo(id) {
  // return post('/index.php?act=member_order&op=getRefundDetail', {refund_id: id})
  return post('/index.php?act=refund&op=showinfo', {refund_id: id})
}
// 退款/换货理由列表 type 0退款 1换货
function getRefundReasonList(type) {
  return post('/index.php?act=refund&op=getRefundReason', {reason_type: type})
}
// 获取物流公司列表
function getExpressList() {
  return post('/index.php?act=refund&op=express')
}
// 添加换货物流信息
function addRefundExpress({refund_id, express_id, express_code}) {
  return post('/index.php?act=refund&op=ship', {refund_id, express_id, express_code})
}
// 获取换货物流信息
function getRefundExpress(id) {
  // return post('/index.php?act=refund&op=showinfo', {refund_id: id})
  return post('/index.php?act=member&op=returnExpressDetail', {return_id: id})
}
// 确认收货
function confirmReceived(id) {
  return post('/index.php?act=openshop&op=confirmOrder', {order_id: id})
}
// 获取订单配送物流信息
function getOrderExpress(id) {
  return post('/index.php?act=member&op=expressDetail', {order_id: id})
}
// 获取微信推广文章列表
function getNewsList(page, pageSize) {
  return post('/index.php?act=member&op=getArticleList', {page: page, pageSize: pageSize})
}
// 获取微信推广文章详细
function getNewsDetail(id) {
  return post('/index.php?act=article_detail&op=article_detail', {id: id})
}
// 获取收藏列表
function getCollectList(page, pageSize) {
  return post('/index.php?act=member&op=getFavsList', {page: page, pageSize: pageSize})
}
// 添加收藏
function addCollect(id) {
  return post('/index.php?act=member&op=addFavorites', {goods_commonid: id})
}
// 删除收藏
function delCollect(id) {
  return post('/index.php?act=member&op=delFavorites', {goods_commonid: id})
}

// 获取erp里的商品库存信息
function getErpStorage(sku) {
  return post('/index.php?act=goods&op=getErpGoodsStorage', {sku: sku})
}
// 修改用户昵称
function editUserName(name) {
  return post('/index.php?act=member&op=editMember', {member_name: name})
}
// 获取邀请人信息
function getInviterInfo() {
  return post('/index.php?act=index&op=getInviterInfo', {})
}
// 获取自提地址列表
function getShopAddressList() {
  return post('/index.php?act=member_buy&op=self_deliveryAddress', {})
}
// 待下单
function addAgentOrder(mobile, remark) {
  return post('/index.php?act=member_order&op=placeOrder', {mobile: mobile, remark: remark})
}
// 获取下级成员列表
function getSubMemberList(page, pageSize) {
  return post('index.php/?act=member&op=getagentlist', {page: page, pageSize: pageSize})
}
// 获取下级成员的订单列表
function getSubOrderList(memberid, page, pageSize, type) {
  return post('/index.php/?act=member&op=order_list', {memberid: memberid, page: page, pageSize: pageSize, type: type})
}
// 获取待发货、待收货、已完成等的数量
function getCountList() {
  return post('/index.php/?act=member_order&op=countOrderNum', {})
}

// 添加到货提醒
function addArriveNotice(id, tel) {
  return post('/index.php?act=member&op=new_arrival_notice', {goods_id: id, mobile: tel})
}
// 商品访问+1
function addGoodsView(goodsId) {
  return post('/index.php?act=store&op=ajax_flowstat_record', {store_id: 1, goods_id: goodsId})
}

// 优惠券列表
function getStoreCouponList({cp_id, coupon_type, store_id = 0, page, pageSize, sortType = 1, desc = 1}) {
  return post('/index.php?act=member_coupon&op=coupon_list', {cp_id, coupon_type, store_id, page, pageSize, sortType, desc})
}
// 我的优惠券列表
function getMemberCouponList({cp_id, coupon_type, cm_status, store_id = 0, page, pageSize, sortType = 1, desc = 1}) {
  return post('/index.php?act=member_coupon&op=my_coupon_list', {cp_id, coupon_type, cm_status, store_id, page, pageSize, sortType, desc})
}
// 获取我的优惠券统计信息
function getMemberCouponCount() {
  return post('/index.php?act=member_coupon&op=my_coupon_list_info', {})
}
// 券包列表
function getStoreCouponPackList({store_id = 0, page, pageSize}) {
  return post('/index.php?act=member_coupon&op=coupon_pack_list', {store_id, page, pageSize})
}
// 领取优惠券
function receiveCoupon(id) {
  return post('/index.php?act=member_coupon&op=get_coupon', {coupon_id: id})
}
// 领取券包
function receiveCouponPack(id) {
  return post('/index.php?act=member_coupon&op=get_coupon_pack', {cp_id: id})
}
// 获取订单可用优惠券列表(订单确认页)
function getCanUseCouponList(cart_id, use_client) {
  return post('/index.php?act=member_coupon&op=get_order_valid_coupon_list', {cart_id: cart_id, use_client: use_client})
}
// 获取快过期的优惠券列表
function getNearDropCouponList(day) {
  return post('/index.php?act=member_coupon&op=get_near_drop_coupon', {day: day, store_id: '0'})
}
// 优惠券自动领取触发
function couponTrigger(type) {
  return post('/index.php?act=member_coupon&op=trigger_event', {type: type})
}
// 优惠券详情
function getStoreCouponInfo(cp_id) {
  return post('/index.php?act=member_coupon&op=coupon_info', {cp_id: cp_id})
}
// 券包详情
function getStoreCouponPackInfo(cp_id) {
  return post('/index.php?act=member_coupon&op=coupon_pack_info', {cp_id: cp_id})
}
// 首页热门品牌
function getHotBrands(page, pageSize) {
  return post('/index.php?act=goods_add&op=brand_name', {page: page, pagesize: pageSize})
}
// 首页今日超值
function getDeserveGoods(page, pageSize) {
  return post('/index.php?act=index&op=new_goods', {page: page, pageSize: pageSize})
}
// 热门搜索词
function getHotSearchKey(page, pageSize) {
  return post('/index.php?act=goods_add&op=searchGoods', {page: page, pageSize: pageSize})
}
// 获取筛选条件
function getFilterCondition() {
  return post('/index.php?act=goods&op=goods_screening')
}
// 上传头像
function upgradeHeadImg(imgData) {
  return post('/index.php?act=member&op=setAvatar', {image: imgData})
}
// 修改密码
function modifyPwd(postData) {
  return post('/index.php?act=goods_add&op=editMemberPwd', postData)
}
// 修改绑定手机1
function modifyMobile(postData) {
  return post('/index.php?act=member&op=modifyPhone', postData)
}
// 修改绑定手机2
function bindNewMobile(postData) {
  return post('/index.php?act=member&op=bind_Phone', postData)
}
// 意见反馈
function submitAdvice(msg, connect) {
  return post('/index.php?act=member&op=feedback', {feedback: msg, connect: connect})
}
// 获取会员充值参数
function getVipChargeData() {
  return post('/index.php?act=charge&op=charge_level')
}
// 充值会员
function chargeVipLevel(level, amount, period) {
  return post('/index.php?act=charge&op=pay', {level: level, amount: amount, period: period})
}
// 完善用户资料
function finishData(mobile, password, secode) {
  return post('index.php?act=member&op=finish_data', {mobile: mobile, password: password, secode: secode})
}
// 获取提现详情
function getWithdrawalLog(page, pageSize) {
  return post('index.php?act=member&op=cash_display', {page: page, pageSize: pageSize})
}
// 获取用户银行卡信息
function getBankList() {
  return post('index.php?act=member_distribution&op=get_mybanklist')
}
// 获取可选银行银行卡信息
function getAllBankList() {
  return post('index.php?act=member_distribution&op=get_banklist')
}
// 设置默认银行卡
function setDefaultBank(id) {
  return post('index.php?act=member_distribution&op=setDefaultBank', {mb_id: id})
}
// 删除银行卡
function deleteBank(id) {
  return post('index.php?act=member_distribution&op=delmyBank', {mb_id: id})
}
// 编辑银行卡
function bankEditList({mb_id, account_name, member_mobile, bank_id, branch_name, member_bank_num}) {
  return post('index.php?act=member_distribution&op=add_mybanklist', {mb_id, account_name, member_mobile, bank_id, branch_name, member_bank_num})
}
// 添加银行卡
function addBank({account_name, member_mobile, bank_id, branch_name, member_bank_num}) {
  return post('index.php?act=member_distribution&op=add_mybanklist', {account_name, member_mobile, bank_id, branch_name, member_bank_num})
}
// 提现申请
function withdrawal({withdrawals_amount, type}) {
  return post('index.php?act=member_distribution&op=member_withdrawals', {withdrawals_amount, type})
}
// 代理申请
function addUnion({member_name, mobile, code, investment_budget, province, city}) {
  return post('index.php?act=member&op=addunion', {member_name, mobile, code, investment_budget, province, city})
}

// 手表维修
function Watch_maintenance(brand, wModel, maintaintype, renewType, type, name, mobile, fault, face, back, side, gangmaster, description) {
  return post('index.php?act=member_feedback&op=Watch_maintenance', {brand: brand, wModel: wModel, maintaintype: maintaintype, renewType: renewType, type: type, name: name, mobile: mobile, fault: fault, face: face[0], back: back[0], side: side[0], gangmaster: gangmaster[0], description: description})
}

// 门店
function getExperience() {
  return post('index.php?act=store&op=expreience_brand')
}

// 体验门店
function experience_store() {
  return post('index.php?act=store&op=experience_store')
}

// 回收手表
function Watch_recycle(brand, wModel, qualityC, maintaintype, renewType, price, planPrice, QQ, name, mobile, face, back, side, gangmaster, description) {
  return post('index.php?act=member_feedback&op=Watch_recycle', {brand: brand, wModel: wModel, qualityC: qualityC, maintaintype: maintaintype, renewType: renewType, price: price, planPrice: planPrice, QQ: QQ, name: name, mobile: mobile, face: face[0], back: back[0], side: side[0], gangmaster: gangmaster[0], description: description})
}

// 退款订单查看
function retrunindex(id, goods_id) {
  return post('index.php?act=refund&op=retrunindex', {order_id: id, goods_id: goods_id})
}

// 退款订单查看
function addfund(id, goods_id, reason_info, received_state, goods_num, refundType, image64) {
  return post('index.php?act=refunds&op=addrefund', {order_id: id, goods_id: goods_id, refund_message: reason_info, refund_goods_state: received_state, goods_num: goods_num, refund_type: refundType, image64: image64[0]})
}
// 查看退款状态
function refundState(order_id, goods_id) {
  return post('index.php?act=openshop&op=refundGoods', {order_id: order_id, goods_id: goods_id})
}
// 撤销退款
function cancelReturn(order_sn, refund_sn) {
  return post('index.php?act=refunds&op=cancelReturn', {order_sn: order_sn, refund_sn: refund_sn})
}
// 获取指定订单售后信息
function getAfterSaleInfo(order_sn) {
  return post('index.php?act=refunds&op=getAfterSaleInfo', {order_sn: order_sn})
}
// 填写退款运单号
function writeTakNumber(order_id, goods_id, order_sn, refund_sn, takNumber) {
  return post('index.php?act=refunds&op=writeTakNumber', {order_id: order_id, goods_id: goods_id, order_sn: order_sn, refund_sn: refund_sn, takNumber: takNumber})
}
// 修改退款单
function amendOrderinfo(order_id, goods_id, refund_type, refund_goods_state, refund_message, image64) {
  return post('index.php?act=refunds&op=amendOrderinfo', {order_id: order_id, goods_id: goods_id, refund_type: refund_type, refund_goods_state: refund_goods_state, refund_message: refund_message, image64: image64})
}
// 获取退款单列表
function getRefundList(page, pageSize) {
  return post('index.php?act=refunds&op=getRefundList', {page: page, pageSize: pageSize})
}
// 删除退款单
function delRefundInfoObj(order_sn, refund_sn) {
  return post('index.php?act=refunds&op=delRefundInfoObj', {order_sn: order_sn, refund_sn: refund_sn})
}
// 获取客服信息
function getCustomerService() {
  return post('index.php?act=index&op=getCustomerService', {})
}
// 修改绑定手机3
function bindNewMobile1(postData) {
  return post('/index.php?act=login&op=bind_Phone', postData)
}
// 获取手表属性
function getWatchPrototype() {
  return post('/index.php?act=goods&op=getWatchPrototype', {})
}
// 返回直径
function fast_select_diameter() {
  return post('/index.php?act=index&op=fast_select_diameter', {})
}
// 返回精确直径
function exact_select_diameter(diameter) {
  return post('/index.php?act=index&op=exact_select_diameter', {diameter: diameter})
}
// 淘只合伙人接口
function getPartnerGoods() {
  return post('/index.php?act=index&op=getPartnerGoods', {})
}

export {
  getAppVersionInfo,
  getKey,
  getWxConfig,
  getKeyByUnionId,
  loginByMessage,
  loginByPwd,
  loginByWeixin,
  getWxPayOrder,
  auth,
  getAuth,
  getMessageCode,
  getMessageCode2,
  payTest,
  getAdvList,
  getGoodsClassList,
  getNoticeList,
  getNoticeDetail,
  getPanicBuyingList,
  getPanicBuyingGoodsList,
  getNewGoodsList,
  getHotGoodsList,
  getGoodsList,
  getGoodsInfo,
  getGoodsCommentList,
  getGoodsAttributeList,
  addGoodsToCart,
  modifyGoodsNumToBuy,
  delGoodsFromCart,
  getGoodsListInCart,
  delAddress,
  getAddressInfo,
  getAddressList,
  addAddress,
  updateAddress,
  setDefaultAddress,
  getBuyInfo,
  submitOrder,
  getOrderList,
  getOrderInfo,
  getIntegralList,
  getBalanceList,
  cancleOrder,
  addCommentList,
  getArea,
  getVideo,
  getVideoDetail,
  homeVideo,
  getMemberInfo,
  getMemberName,
  getMessageList,
  getRefundMoneyList,
  getRefundMoneyInfo,
  getRefundGoodsList,
  getRefundGoodsListByOrder,
  addRefund,
  getRefundInfo,
  getRefundReasonList,
  getExpressList,
  addRefundExpress,
  getRefundExpress,
  confirmReceived,
  getOrderExpress,
  getNewsList,
  getNewsDetail,
  getCollectList,
  addCollect,
  delCollect,
  getErpStorage,
  editUserName,
  getInviterInfo,
  getShopAddressList,
  addAgentOrder,
  getSubMemberList,
  getSubOrderList,
  getCountList,
  addArriveNotice,
  addGoodsView,
  getStoreCouponList,
  getMemberCouponList,
  getMemberCouponCount,
  getStoreCouponPackList,
  receiveCoupon,
  receiveCouponPack,
  getCanUseCouponList,
  getNearDropCouponList,
  couponTrigger,
  getStoreCouponInfo,
  getStoreCouponPackInfo,
  getBrandsData,
  register,
  getHotBrands,
  getDeserveGoods,
  getHotSearchKey,
  getFilterCondition,
  upgradeHeadImg,
  modifyPwd,
  modifyMobile,
  submitAdvice,
  bindNewMobile,
  getVipChargeData,
  chargeVipLevel,
  finishData,
  getWithdrawalLog,
  getBankList,
  setDefaultBank,
  deleteBank,
  bankEditList,
  addBank,
  getAllBankList,
  withdrawal,
  addUnion,
  Watch_maintenance,
  getExperience,
  experience_store,
  Watch_recycle,
  retrunindex,
  addfund,
  refundState,
  cancelReturn,
  getAfterSaleInfo,
  writeTakNumber,
  amendOrderinfo,
  getRefundList,
  delRefundInfoObj,
  getCustomerService,
  bindNewMobile1,
  getWatchPrototype,
  fast_select_diameter,
  exact_select_diameter,
  getPartnerGoods
}
